module.exports = {
    type: 'article',
  
    async fetch({
        args
    }) {
        let resp = await $http.get(`http://app-cdn.jjwxc.net:80/androidapi/novelbasicinfo?novelId=${args.id}`)
        let data = resp.data
        var str = data.novelIntro
        return {
            content: {
                url: `http://app-cdn.jjwxc.net:80/androidapi/novelbasicinfo?novelId=${args.id}`,
                text: str.replace(/&lt;.*?&gt;/g,'\n'),
                title: data.novelName,
                charset: 'utf-8'
            },
            title: data.novelName,
          
            actions: [{
                title: '去看',
                route: $route('types/chapterlist', {
                    id: data.novelId
                })
            }],


        }
    }
}